package com.yyc.system.service.impl;

import com.yyc.system.dao.TClassUserMapper;
import com.yyc.system.model.TClassUser;
import com.yyc.system.service.ITClassUserService;
import com.yyc.core.AbstractService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;


/**
 * Created by yyc on 2018/12/26.
 */
@Service
@Transactional( isolation = Isolation.DEFAULT, propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class TClassUserServiceImpl extends AbstractService<TClassUser> implements ITClassUserService {
    @Autowired
    private TClassUserMapper tClassUserMapper;

	@Override
	public List<TClassUser> findClassStudent(Integer classId) {
		return tClassUserMapper.getClassStudent(classId);
	}

	@Override
	public List<TClassUser> findStudentList() {
		return tClassUserMapper.getStudentList();
	}

}
